[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 PEEKB(IEXP) (INTEGER)

 Function
  Return the value (0-255) of a byte at a specified memory address.
  (PEEK is a synonym)

 Syntax
  PEEKB(addr)

   addr = An integer expression with the address of the byte to peek.

 Return Type & Value
  INTEGER
  Returns the value of the byte at addr.

 Remarks
  It is sometimes necessary to read values from memory directly (for
  example, from the system BIOS data segment).  This function will return
  a byte quantity (0-255) from a specified memory address.

 Examples
  PRINTLN "The current video mode is ",PEEKB(MKADDR(40h,49h))

See Also: MKADDR() PEEKDW() PEEKW() POKEB POKEDW POKEW VARADDR VAROFF VARSEG
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson